/ TextGen / TextGenLib / Replacements / Compare


Parameters
compareItem - The Compare object.
compareToValue - The CompareTo value.

Returns

The integer that indicates the order relationship of the objects.

Syntax

JavaScript
Compare(compareItem, compareToValue)

Compares the supplied item object name to the supplied compareToValue.

Remarks

A negative integer - This instance precedes the compare-to object.
Zero - This instance and the compare-to object have the same position.
A postive integer - This instance follows the compare-to object.

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.